<?php

namespace App\Constants;

class VipType
{
    /**
     * @var VIP年卡
     */
    const VIP_YEAR = 51;

    /**
     * @var VIP3个月卡
     */
    const VIP_3MONTHS = 52;

    /**
     * @var VIP月卡
     */
    const VIP_MONTH = 53;

    /**
     * @var 赠送VIP
     */
    const VIP_GIVE = 55;

    /**
     * @var SVIP年卡
     */
    const SVIP_YEAR = 61;

    /**
     * @var SVIP3个月卡
     */
    const SVIP_3MONTHS = 62;

    /**
     * @var SVIP月卡
     */
    const SVIP_MONTH = 63;

    /**
     * @var 赠送SVIP
     */
    const SVIP_GIVE = 65;


    public static function getVipTypeInfo($code): string
    {
        $data = [
            self::VIP_YEAR => 'VIP年卡',
            self::VIP_3MONTHS => 'VIP3个月卡',
            self::VIP_MONTH => 'VIP月卡',
            self::VIP_GIVE => '赠送VIP',
            self::SVIP_YEAR => 'SVIP年卡',
            self::SVIP_3MONTHS => 'SVIP3个月卡',
            self::SVIP_MONTH => 'SVIP月卡',
            self::SVIP_GIVE => '赠送SVIP',
        ];
        return $data[$code] ?? '';
    }
}